<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <style>
    .box{
      height: 0;
      background: pink;
      padding-bottom: 100px;
      overflow: hidden;
    }
    .son{
      height: 50px;
      background: hotpink;
    }
    .other{
      background: #333333;
    }
  </style>
</head>
<body>
<!--
只要将height设置为0了
padding是不占据实际空间的

但如果height不为0
padding是会占据的
-->

<div class="box">
  <div class="son"></div>
</div>
<div class="other">
  123
</div>
</body>
</html>
